package com.ciaojian.worker.service;

import com.ciaojian.core.mapper.DyRecordMapper;
import com.ciaojian.core.model.DyRecord;
import com.ciaojian.core.service.DyRecordService;
import org.springframework.stereotype.Service;

/**
 * @author oxiny
 */
@Service
public class DyRecordServiceImpl extends DyRecordService<DyRecordMapper, DyRecord> {

    /**
     * 新增抖音产品记录
     *
     * @param workerId 发型师
     * @param userId   用户
     */
    public void dyRecord(Integer workerId, Integer userId) {
        new DyRecord()
                .setUserId(userId)
                .setWorkerId(workerId)
                .insert();
    }

}
